package net.wanho.zx.zx_cms.controller;


import net.wanho.zx.pojo.cms.CmsTemplate;
import net.wanho.zx.zx_cms.service.CmsTempleteService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class CmsTempletteController {

    @Resource
    CmsTempleteService cmsTempleteService;


    @GetMapping("/cms/templete/list/")
    public List<CmsTemplate> query(){
        return cmsTempleteService.query();
    }
}
